﻿using AppEszköz.Xml;
using System;
namespace AppEszköz.Log
{
    public class LogEntry
    {
        public int EventId { get; set; }

        public string Message { get; set; } = " ";

        public string Category { get; set; } = " ";

        public int Priority { get; set; }

        public string ExtendedInfo { get; set; } = " ";

        public DateTime EventDateTime { get; set; }

        public LogEntry()
        {
            this.EventDateTime = DateTime.Now;
        }

        public override string ToString()
        {
            return XmlHelper.Serialize((object)this).Replace("<?xml version=\"1.0\"?>\r\n", "") + "\r\n";
        }
    }
}